<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>实验15测试文件</title>
<script type="text/javascript" src="jquery-1.6.4.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#submit").click(function(){
		var options = ['','非常喜欢','喜欢','还行','不喜欢','很不喜欢'];
		
		var $select = $(':checked').val();
		if (!$select) {
			alert("必须选择一项！");
		}
		else {
			var info = "你的喜欢程度是"+options[$select];
			alert(info);
		}
	});
});
</script>
</head>
<body>
	<div id="header"></div>
	<div id="main">
		<form action="" method="post">
			<div>
				<p>你喜欢PHP吗？</p>
				<p>
					<input type="radio" value="1" name="habor" />非常喜欢
					<input type="radio" value="2" name="habor" />喜欢
					<input type="radio" value="3" name="habor" />还行
					<input type="radio" value="4" name="habor" />不喜欢
					<input type="radio" value="5" name="habor" />很不喜欢
				</p>
				<p><input type="button" name="submit" id="submit" value="提交" /></p>
			</div>
		</form>
	</div>
	<div id="footer"></div>
</body>
</html>